home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Library / Manuels & Misc / Assembly / AOA.ZIP / CH07 / PGM7_1.ASM next >
Encoding:
Assembly Source File  |  1996-02-06  |  965 b   |  50 lines

  1. ; Sample Starting SHELL.ASM file
  2. ;
  3. ; Randall Hyde
  4. ; Version 1.0
  5. ; 2/6/96
  6. ;
  7. ; This file shows what the SHELL.ASM file looks like without
  8. ; the superfluous comments that explain where to place objects
  9. ; in the source file.  Your programs should likewise begin
  10. ; with a stripped version of the SHELL.ASM file.  After all,
  11. ; the comments in the original SHELL.ASM file are four *your*
  12. ; consumption, not to be read by someone who sees the program
  13. ; you wind up writing.
  14.  
  15.         .xlist
  16.         include     stdlib.a
  17.         includelib    stdlib.lib
  18.         .list
  19.  
  20. dseg        segment    para public 'data'
  21.  
  22. dseg        ends
  23.  
  24. cseg        segment    para public 'code'
  25.         assume    cs:cseg, ds:dseg
  26.  
  27. Main        proc
  28.         mov    ax, dseg
  29.         mov    ds, ax
  30.         mov    es, ax
  31.         meminit
  32.  
  33.  
  34.  
  35.  
  36.  
  37. Quit:        ExitPgm
  38. Main        endp
  39.  
  40. cseg            ends
  41.  
  42. sseg        segment    para stack 'stack'
  43. stk        db    1024 dup ("stack   ")
  44. sseg        ends
  45.  
  46. zzzzzzseg    segment    para public 'zzzzzz'
  47. LastBytes    db    16 dup (?)
  48. zzzzzzseg    ends
  49.         end    Main
  50.